package com.zelix;

import java.awt.Container;
import java.util.Enumeration;
import javax.swing.*;

class gh
        implements ey, jz {

    yu a;
    t3 b;
    DefaultListModel c;
    Object d;
    private static String z[];

    gh(yu yu1, t3 t3) {
        a = yu1;
        b = t3;
        c = (DefaultListModel) t3.getModel();
        c.addElement(z[0]);
        b.setEnabled(false);
        yu1.a(this);
        a();
    }

    private void a() {
        Container container = b.getParent();
        container.removeAll();
        container.add(b, z[1]);
    }

    public void a(gs gs, Object obj, Object obj1, Object obj2) {
        new kz(this, gs, obj, obj1, obj2);
    }

    public void b(gs gs, Object obj, Object obj1, Object obj2) {
        gs gs1;
        Enumeration enumeration;
//        boolean flag;
//        flag = tb.b;
        gs1 = ((yu) gs).h();
        if (gs1 != null) {
//            break MISSING_BLOCK_LABEL_128;
            if (gs1 != d) {
//            break MISSING_BLOCK_LABEL_174;
                if ((gs1 instanceof mt)) {
//            break MISSING_BLOCK_LABEL_119;
                    c = new DefaultListModel();
                    mt mt1 = (mt) gs1;
                    enumeration = mt1.db();
                    while (enumeration.hasMoreElements()) {
//        if(!flag) goto _L2; else goto _L1
//_L1:
                        ru ru1 = (ru) enumeration.nextElement();
                        c.addElement(ru1.g());
                    }
//_L2:
//        if(enumeration.hasMoreElements()) goto _L1; else goto _L3
//_L3:
                    b.setModel(c);
                    b.setEnabled(true);
                }
                a();
//        if(!flag)
//            break MISSING_BLOCK_LABEL_174;
            }
        } else {
            c = new DefaultListModel();
            c.addElement(z[0]);
            b.setModel(c);
            b.setEnabled(false);
            a();
        }
        d = gs1;

    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key = 0x1f;
                    break;
                case 1:
                    key = 4;
                    break;
                case 2:
                    key = 39;
                    break;
                case 3:
                    key = 57;
                    break;
                case 4:
                    key = 107;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        String as[];
        as = new String[2];
        as[0] = z("qk\007I\031ptBK\037vaT\031\nieNU\n}hB".toCharArray());
        as[1] = z("\\aIM\016m".toCharArray());
        z = as;
    }
}